import request from '@/utils/request'

export function AIReplyEmail(data) {
  return request({
    url: '/crm/api/crmaireplyemail/',
    headers: { 'content-type': 'application/json' },
    method: 'post',
    data: data
  })
}

export function AIGetPrompts(data) {
  return request({
    url: '/crm/api/getprompts/',
    headers: { 'content-type': 'application/json' },
    method: 'post',
    data: data
  })
}

export function AIGenerateTopicPrompt(data) {
  return request({
    url: '/crm/api/generatetopicprompt/',
    headers: { 'content-type': 'application/json' },
    method: 'post',
    data: data,
    timeout: 300000
  })
}

export function AITask(data) {
  return request({
    url: '/crm/api/aitask/',
    headers: { 'content-type': 'application/json' },
    method: 'post',
    data: data,
    timeout: 300000
  })
}
